﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using SubSonic;

public partial class webUserControl_SupplierOrderList : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        btnResize.Enabled = true;
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        UltraWebGridExcelExporter1.Export(UltraWebGrid1);
       
    }
    protected void btnResize_Click(object sender, EventArgs e)
    {
        StoredProcedure sp = new StoredProcedure("sp_supplierDone");
        sp.Command.AddParameter("@sID",Request["sID"]);
        sp.Execute();
        Response.Redirect("~/supplierlist.aspx");
    }
}
